while True:
    try:
        a = input().split()
        a.pop(0)
        # print(a)
        b = []
        for each in a:
            b.append(int(each))
        print(sum(b))
    except EOFError:
        break